package com.rj2002.pojo;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 
 */
public class Goods implements Serializable {
    private Integer id;

    /**
     * 商品名称
     */
    private String goodsname;

    /**
     * 商品价格（单价）
     */
    private Float price;

    /**
     * 关联商品类型id
     */
    private Integer typeid;

    /**
     * 所属商家（用户表的id）
     */
    private Integer userid;

    /**
     * 批次
     */
    private Integer batch;

    /**
     * 商品图片
     */
    private String imgurl;

    private String productdate;

    /**
     * flag（0上架和1下架）
     */
    private Integer flag;

    private Date createtime;

    private Date updatetime;

    /**
     * 商品介绍
     */
    private String gooddetail;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getGoodsname() {
        return goodsname;
    }

    public void setGoodsname(String goodsname) {
        this.goodsname = goodsname;
    }

    public Float getPrice() {
        return price;
    }

    public void setPrice(Float price) {
        this.price = price;
    }

    public Integer getTypeid() {
        return typeid;
    }

    public void setTypeid(Integer typeid) {
        this.typeid = typeid;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public Integer getBatch() {
        return batch;
    }

    public void setBatch(Integer batch) {
        this.batch = batch;
    }

    public String getImgurl() {
        return imgurl;
    }

    public void setImgurl(String imgurl) {
        this.imgurl = imgurl;
    }

    public String getProductdate() {
        return productdate;
    }

    public void setProductdate(String productdate) {
        this.productdate = productdate;
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    public String getGooddetail() {
        return gooddetail;
    }

    public void setGooddetail(String gooddetail) {
        this.gooddetail = gooddetail;
    }

	@Override
	public String toString() {
		return "Goods [id=" + id + ", goodsname=" + goodsname + ", price=" + price + ", typeid=" + typeid + ", userid="
				+ userid + ", batch=" + batch + ", imgurl=" + imgurl + ", productdate=" + productdate + ", flag=" + flag
				+ ", createtime=" + createtime + ", updatetime=" + updatetime + ", gooddetail=" + gooddetail + "]";
	}
    
    
}